package com.lyf.language.practice.practice_6_21.lang;

/**
 * 枚举所有可能出现的情况--
 *
 * @author LYF
 * @date 2022/6/21
 */
public enum EnumKind {
     INTERNAL_SERVER_ERROR("error",500),
     NOT_FOUND("not",404);

     private String msg;
     private Integer code;

     EnumKind(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
     }

     public String getMsg() {
        return msg;
     }

//    public void setMsg(String msg) {
//        this.msg = msg;
//    }

     public Integer getCode() {
        return code;
     }

//    public void setCode(Integer code) {
//        this.code = code;
//    }
}
